package com.dykj.fireFighting.server.base.analysis.service.impl;

import com.dykj.fireFighting.api.base.analysis.entity.BusinessLevel;
import com.dykj.fireFighting.api.base.analysis.entity.BusinessMap;
import com.dykj.fireFighting.api.base.analysis.service.IBusinessAnalysisService;
import com.dykj.fireFighting.api.base.analysis.service.ILevelAnalysisService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.base.analysis.mapper.BusinessMapMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/*
 * 排名分析
 */
@Slf4j
@DubboService
public class BusinessAnalysisServiceImpl extends BaseServiceImpl<BusinessMapMapper, BusinessMap> implements IBusinessAnalysisService {
    @Override
    public List<BusinessMap> getFireAlarmBusinessMap(String beginTime, String endTime) {
        return this.baseMapper.getFireAlarmBusinessMap( beginTime,  endTime);
    }

    @Override
    public List<BusinessMap> getFaultBusinessMap(String beginTime, String endTime) {
        return this.baseMapper.getFaultBusinessMap( beginTime, endTime);
    }

    @Override
    public List<BusinessMap> getEarlyWarningBusinessMap(String beginTime, String endTime) {
        return this.baseMapper.getEarlyWarningBusinessMap( beginTime, endTime);
    }

    @Override
    public List<BusinessLevel> getFireAlarmBusinessLevelByYear(String beginTime) {
        return this.baseMapper.getFireAlarmBusinessLevelByYear(beginTime);
    }

    @Override
    public List<BusinessLevel> getFaultBusinessLevelByYear(String beginTime) {
        return this.baseMapper.getFaultBusinessLevelByYear(beginTime);
    }

    @Override
    public List<BusinessLevel> getEarlyWarningBusinessLevelByYear(String beginTime) {
        return this.baseMapper.getEarlyWarningBusinessLevelByYear(beginTime);
    }

    @Override
    public List<BusinessLevel> getFireAlarmBusinessLevelByQuarter(String beginTime) {
        return this.baseMapper.getFireAlarmBusinessLevelByQuarter(beginTime);
    }

    @Override
    public List<BusinessLevel> getFaultBusinessLevelByQuarter(String beginTime) {
        return this.baseMapper.getFaultBusinessLevelByQuarter(beginTime);
    }

    @Override
    public List<BusinessLevel> getEarlyWarningBusinessLevelByQuarter(String beginTime) {
        return this.baseMapper.getEarlyWarningBusinessLevelByQuarter(beginTime);
    }

    @Override
    public List<BusinessLevel> getFireAlarmBusinessLevelByMonth(String beginTime) {
        return this.baseMapper.getFireAlarmBusinessLevelByMonth(beginTime);
    }

    @Override
    public List<BusinessLevel> getFaultBusinessLevelByMonth(String beginTime) {
        return this.baseMapper.getFaultBusinessLevelByMonth(beginTime);
    }

    @Override
    public List<BusinessLevel> getEarlyWarningBusinessLevelByMonth(String beginTime) {
        return this.baseMapper.getEarlyWarningBusinessLevelByMonth(beginTime);
    }
}
